package com.yanqu.road.logic.bussiness.cross;


import com.yanqu.road.entity.activity.springdinner.cross.CrossSpringDinnerUserData;
import com.yanqu.road.entity.activity.springdinner.cross.RedPacketTable;
import com.yanqu.road.logic.bussiness.DaoHelper;

import java.util.List;
import java.util.Map;

public class CrossSpringDinnerBussiness {


    public static Map<Long,Map<Integer, RedPacketTable>> getRedPacketTableMap(int activityId) {
        return DaoHelper.getCrossSpringDinnerDaoImpl().getRedPacketTableMap(activityId);
    }

    public static boolean updateRedPacketTableList(List<RedPacketTable> dataList) {
        return DaoHelper.getCrossSpringDinnerDaoImpl().updateRedPacketTableList(dataList);
    }

    public static boolean addRedPacketTableList(List<RedPacketTable> dataList) {
        return DaoHelper.getCrossSpringDinnerDaoImpl().addRedPacketTableList(dataList);
    }

    public static Map<Long, CrossSpringDinnerUserData> getUserDataMap(int activityId) {
        return DaoHelper.getCrossSpringDinnerDaoImpl().getUserDataMap(activityId);
    }

    public static boolean updateUserDataList(List<CrossSpringDinnerUserData> dataList) {
        return DaoHelper.getCrossSpringDinnerDaoImpl().updateUserDataList(dataList);
    }

    public static boolean addUserDataList(List<CrossSpringDinnerUserData> dataList) {
        return DaoHelper.getCrossSpringDinnerDaoImpl().addUserDataList(dataList);
    }

    public static int getMaxTableIndex(int activityId) {
        return DaoHelper.getCrossSpringDinnerDaoImpl().getMaxTableIndex(activityId);
    }
}
